# $Id: CMakeLists.txt 5 2008-09-26 20:48:45Z rodlima $

add_library(example example.cpp example.h)
target_link_libraries(example cppobj)

include_directories(${CMAKE_SOURCE_DIR}/src ${Boost_INCLUDE_DIRS})

function(define_test test libs)
	add_executable(${test} test_${test}.cpp)
	target_link_libraries(${test} ${libs} ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY})
	add_test(${test} ${test})
endfunction()

function(define_test_fail test libs)
    define_test("${test}" "${libs}")
    set_property(TEST ${test} PROPERTY WILL_FAIL TRUE)
endfunction()

define_test_fail(smart_pointers cppobj)
define_test(cache cppobj)
define_test(list cppobj)
define_test(query example)
define_test(db example)
define_test(relations example)
